package com.ssy.lingxi.platform.manage.entity.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 平台规则配置实体类
 * @author wrc
 * @version 2.0.0
 * @date 2020/07/21
 */
@Data
@Entity
@Table(schema = "public", name = "man_rule_configuration")
public class RuleConfiguration {

    public RuleConfiguration() {
    }

    public RuleConfiguration(Long id, Integer isPitchOn, Integer platformType, String platformWayName, String platformTypeName, Integer code) {
        this.id = id;
        this.platformType = platformType;
        this.platformWayName = platformWayName;
        this.code = code;
        this.platformTypeName = platformTypeName;
        this.isPitchOn = isPitchOn;
    }

    @Id
    @ApiModelProperty("平台规则配置ID")
    private Long id;

    @Column(name  = "platform_type")
    @ApiModelProperty(value = "平台模式类型： 1.资金归集模式 2.库存扣减策略 3.下单模式 4.订单类型 5.结算方式 6.品类与属性使用方式")
    private Integer platformType;

    @Column(columnDefinition = "varchar(30)")
    private String platformTypeName;

    @Column(name  = "platform_way_name")
    @ApiModelProperty(value = "平台配置渠道")
    private String platformWayName;

    @Column
    private Integer code;

    @Column(name  = "is_pitch_on")
    @ApiModelProperty(value = "是否选中：1.是 0.否")
    private Integer isPitchOn;
}
